package com.partner.share.work.mq.listener;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @author pengyangyan
 * @version 1.0.0
 * @date 2019年09月30日 17:10:00
 */
@WebListener
@Slf4j
public class SessionListener implements HttpSessionListener, HttpSessionAttributeListener {

    @Override
    public void attributeAdded(HttpSessionBindingEvent se) {
        log.info("attributeAdded");
    }

    @Override
    public void attributeRemoved(HttpSessionBindingEvent se) {
        log.info("attributeRemoved");
    }

    @Override
    public void attributeReplaced(HttpSessionBindingEvent se) {
        log.info("attributeReplaced");
    }

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        log.info("sessionCreated");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        log.info("sessionDestroyed");
    }
}
